package es.ats.codington.Spring.Controllers;

import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * The Class LoginController.
 *
 * @author 5Cs
 */
@Controller
public class LoginController {

	/**
	 * Hello.
	 *
	 * @param request the request
	 * @return the string
	 */
	@RequestMapping("*")
	public String hello(HttpServletRequest request) {
	    return "login";
	}
	
	/**
	 * Login controller.
	 *
	 * @return the string
	 */
	@RequestMapping(value = "/welcome.htm")
	public String loginController() {
		return "Welcome to FERS";
	}
}